package QQclient;

import java.util.HashMap;

public class Thread_Hashmap {
    private static HashMap<String,ClientThread> hashMap=new HashMap<>();
    public static void Add_Tread(String UserId,ClientThread clientThread){
        hashMap.put(UserId,clientThread);//将线程加入集合中
    }
    public static ClientThread Get_Client(String UserId){
        return hashMap.get(UserId);//获得相对应的线程
    }

}
